package bookticket.core.base;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

@Service
public abstract class BaseSeriveImpl<T> implements BaseDao<T> {

	public abstract BaseDao<T> getBaseDao();
	
	@Override
	public int deleteByIds(List<Integer> ids) {
		return getBaseDao().deleteByIds(ids);
	}
	
	@Override
	public List<T> findAll(Map<String, Object> pageMap) {
		return getBaseDao().findAll(pageMap);
	}

	@Override
	public int getTotalCounter() {
		return getBaseDao().getTotalCounter();
	}
	
}
